<?php

require_once ('Zend\Form.php');

class Application_Form_Entrepot extends Zend_Form {
	
	public function init() {
		// Set the method for the display form to POST
		$this->setMethod ( 'post' );
		$this->addElement ( 'hidden', 
			'id'
		);
		
		$this->addElement ( 'text', 
			'name', 
			array ('label' => '仓库名称:',
				'filters' => array('StringTrim')));
		
		
		$this->addElement ( 'text', 
			'address', 
			array ('label' => '地址:',
				'filters' => array('StringTrim')));

		$this->addElement ( 'text', 
			'contact', 
			array ('label' => '联系人:',
				'filters' => array('StringTrim')));
			
		$this->addElement ( 'text', 
			'phone', 
			array ('label' => '电话:',
				'filters' => array('StringTrim')));
			
			
		// Add the submit button
		$this->addElement ( 'submit', 'submit', array ('ignore' => true, 'label' => '保存' ) );
			
	}
}

